﻿using System;

namespace IBNet
{
   /// <summary>
   /// Delta Neutral Validation Event Args
   /// </summary>
   public class DeltaNeutralValidationEventArgs : EventArgs
   {
      private readonly int requestId;
      private readonly UnderlyingComponent underlyingComponent;

      /// <summary>
      /// Creates a new DeltaNeutralValidationEventArgs.
      /// </summary>
      /// <param name="requestId">The request Id</param>
      /// <param name="underComp">The underlying component</param>
      public DeltaNeutralValidationEventArgs(int requestId, UnderlyingComponent underComp)
      {
         this.requestId = requestId;
         this.underlyingComponent = underComp;
      }

      /// <summary>
      /// Gets the request Id.
      /// </summary>
      public int RequestId
      {
         get { return requestId; }
      }

      /// <summary>
      /// Gets the underlying component.
      /// </summary>
      public UnderlyingComponent UnderlyingComponent
      {
         get { return underlyingComponent; }
      }
   }
}